import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /sys/role/list
系统管理-角色列表查询 */
export const getSystemRoleList = () => Vue.http.get(URL_PREFIX + '/sys/role/list')

/* /sys/role/insert
系统管理-角色新增 */
export const postSystemRoleInsert = (params) => Vue.http.post(URL_PREFIX + '/sys/role/insert', null, { params })

/* /sys/role/update
系统管理-角色修改 */
export const postSystemRoleUpdate = (params) => Vue.http.post(URL_PREFIX + '/sys/role/update', null, { params })

/* /sys/role/del
系统管理-角色删除 */
export const postSystemRoleDelete = (params) => Vue.http.post(URL_PREFIX + '/sys/role/del', null, { params })

/* /sys/role/insertRolePower
系统管理-角色添加权限 */
export const getSystemRoleInsertPower = (params) => Vue.http.get(URL_PREFIX + '/sys/role/insertRolePower', { params })
